package com.mnsq.subject.bean.entity;

import com.mnsq.subject.bean.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

/**
 * status说明：
 * 1，待审核；2，异常；3，已删除；4，隐藏；5，已审核；
 *
 * @author Administrator
 * @date 2019/3/17 0017
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "s_subject")
public class Subject extends BaseEntity implements Serializable {
    @Transient
    private Long serialVersionUID = 330131423236953311L;

    private String title;
    @Column(name = "author_name")
    private String authorName;
    /**
     * 题目明细，doc内容
     */
    private String subject;
    /**
     * 题目明细，HTML内容
     */
    @Column(name = "subject_html")
    private String subjectHtml;
    /**
     * 记录类型：文章、例题、交流专区
     */
    private Integer type;
    /**
     * 是否有审核过的信息
     */
    private Boolean agreed;

    @Column(name = "subject_content_id")
    private Long subjectContentId;

    /**
     * 审核信息
     */
    private String reason;
    @Transient
    private SubjectContent subjectContent;
}
